package com.china08.yxyapi.util;

import java.math.BigDecimal;

import org.springframework.stereotype.Component;

@Component
public class FloatUtil {

    public static float dot1(float origin) {
        BigDecimal b = new BigDecimal(origin);
        float dest = b.setScale(1, BigDecimal.ROUND_HALF_UP).floatValue();
        return dest;
    }
}
